package com.daoeping.domain;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Bsc_area entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bsc_area", catalog = "daoeping")
public class Bsc_area implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String description;
	private Bsc_city bsc_city;
	
	// Constructors


	/** default constructor */
	public Bsc_area() {
	}

	/** minimal constructor */
	public Bsc_area(String name) {
		this.name = name;
	}

	/** full constructor */
	public Bsc_area(String name, String description, Bsc_city bsc_city ) {
		this.name = name;
		this.description = description;
		this.bsc_city = bsc_city;
		
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name", nullable = false, length = 200)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "description", length = 200)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@ManyToOne
	@JoinColumn(name = "city_id")
	public Bsc_city getBsc_city() {
		return bsc_city;
	}

	public void setBsc_city(Bsc_city bsc_city) {
		this.bsc_city = bsc_city;
	}
	

}